
EVCONN_HOME = $(HOME)/evconnsvrd
EVCONN_BASE = $(EVCONN_HOME)/base
EVCONN_LIBEV = $(EVCONN_HOME)/libevent
EVCONN_LSI = $(EVCONN_HOME)/lsi
EVCONN_MXML = $(EVCONN_HOME)/mxml
EVCONN_SRC = $(EVCONN_HOME)/src
EVCONN_BIN = $(EVCONN_HOME)/bin
EVCONN_PROTO = $(EVCONN_HOME)/proto
EVCONN_SAMPLE = $(EVCONN_HOME)/sample

CC = gcc
CCFLAGS = -pg -Wall -Wno-unknown-pragmas -ggdb -Wno-format -D_GNU_SOURCE
INCLUDE = -I$(EVCONN_LIBEV) -I$(EVCONN_PROTO) -I$(EVCONN_BASE) -I$(EVCONN_LSI)/include -I$(EVCONN_MXML)/include
CP = cp
AR = ar -r 
MV = mv

BITS = $(shell	getconf LONG_BIT)
ifeq ($(BITS),64)
	LIBS = -L/usr/lib64/ -L/usr/local/lib64/
else
	LIBS = -L/usr/lib/ -L/usr/local/lib/
endif
LIBS += $(EVCONN_BASE)/libbase.a $(EVCONN_LIBEV)/lib/libevent_core.a \
	$(EVCONN_LIBEV)/lib/libevent_pthreads.a $(EVCONN_LSI)/lib/liblsi.a \
	$(EVCONN_MXML)/lib/libmxml.a -lpthread -lrt
